<#import '/ftlLibrary/properteisVariable.ftl' as pv/>
<link href="assets/css/bootstrap-select.css" rel="stylesheet" />
<script src="assets/js/select2/select2.js"></script>
<div class="row">
	<!-- 映射列表 -->
	<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" id="leftTree">
		<div class="widget flat radius-bordered">
			<div class="widget-header bg-sky theme">
				<span class="widget-caption">会员报班记录表列表</span>
			</div>
			<div class="widget-body no-padding">
				<div class="topPagingBar">
					${pagingBar}
				</div>
				<div class="table-scrollable">
					<!-- 数据表列信息列表 -->
					<table class="table table-bordered dataTable">
						<thead>
							<tr>
								<th title="选择" class="checkboxColumnTh fixedColumn " fixed-align="left">
									<div class="checkbox">
	                                    <label>
	                                        <input type="checkbox" class="chkAll">
	                                        <span class="text"></span>
	                                    </label>
	                                </div>
								</th>
								<th title="课程体系">课程体系</th>
								<th title="课程名称">课程名称</th>
								<th title="周几上课">周几上课</th>
								<th title="上课时间">上课时间</th>
								<th title="下课时间">下课时间</th>
								<th title="上课教室">上课教室</th>
								<th title="授课老师">授课老师</th>
								<th title="剩余节数">剩余节数</th>
								<th title="单节耗课时">单节耗课时</th>
								<th title="操作">操作</th>
							</tr>
						</thead>
						<tbody>
							<#if page_bean.list?size==0>
								<tr>
									<td align="center">无数据</td>
								</tr>
							</#if>
							<#list page_bean.list as data>
								<tr>
									<td class="checkboxColumnTd">
										<div class="checkbox">
		                                    <label>
		                                        <input type="checkbox" class="chk"  name="id" value="${data.id}">
		                                        <span class="text"></span>
		                                    </label>
		                                </div>
									</td>
									<td>  ${(data.systemPidName???string(data.systemPidName?html,"未设置"))!'未设置'}</td>
									<td>  ${(data.courseName???string(data.courseName?html,"未设置"))!'未设置'}</td>
									<td>  ${(data.weekDay???string(data.weekDay?html,"未设置"))!'未设置'}</td>
									<td>  ${(data.startTime???string(data.startTime?html,"未设置"))!'未设置'}</td>
									<td>  ${(data.endTime???string(data.endTime?html,"未设置"))!'未设置'}</td>
									<td>  ${(data.roomName???string(data.roomName?html,"未设置"))!'未设置'}</td>
									<td>  ${(data.realName???string(data.realName?html,"未设置"))!'未设置'}</td>
									<td>  ${(data.surplusMayTurnClassHour???string(data.surplusMayTurnClassHour?html,"未设置"))!'未设置'}</td>
									<td>  ${(data.expendClassHour???string(data.expendClassHour?html,"未设置"))!'未设置'}</td>
									<td><a onclick="showDialogChangeClass(this)"  serializeNum="${serializeNum}"  targetDataId="${data.id}">转班</a>
								</tr>
							</#list>
						</tbody>
					</table>
				</div>
				 ${pagingBar}
			</div>
		</div>
	</div>
</div>
<script>
$(".selectpicker").select2();

function showDialogChangeClass(that){
    ajaxRequest("tssClassesController/tssChangeClassesList.do",{
        pageSize:10,
		type:1
    },function(html){
        getTopWin().bootbox.dialog({
            message:html,
            title:"亲子转班",
            className:'myDialog'
        });
    },function(){
        ajaxError("加载页面失败!")
    },"post","html")

}
</script>